﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MappingWorkspace
{

   

    public static partial class MappingClassTest2Sample
    {


        public static MappingTest.Destination1.ClassTest2 Map(this MappingTest.Sources.ClassTest2 source, MappingTest.Destination1.ClassTest2 destination)
        {

            if (source == null)
                return null;

            if (destination == null)
                destination = new MappingTest.Destination1.ClassTest2();

            destination.Property1 = source.Property1;
            destination.Property2 = source.Property2;

            destination.Property3 = source.Property3.MapCollection();

            return destination;
        }

    }

   
}
